home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 1 / Amiga Tools.iso / egs-tools / egs_demo-version / egs_devels / c-include / egsrequest.h < prev   
Encoding:
C/C++ Source or Header  |  1994-06-06  |  3.4 KB  |  129 lines

  1. #ifndef EGS_EGSREQUEST_H
  2. #define EGS_EGSREQUEST_H
  3.  
  4. /***************************************************************************\
  5. *
  6. *  $
  7. *  $ FILE     : egsrequest.h
  8. *  $ VERSION  : 1
  9. *  $ REVISION : 3
  10. *  $ DATE     : 07-Feb-93 20:53
  11. *  $
  12. *  $ Author   : mvk
  13. *  $
  14. *
  15. *****************************************************************************
  16. *                                                                           *
  17. * (c) Copyright 1990/93 VIONA Development                                   *
  18. *     All Rights Reserved                                                   *
  19. *                                                                           *
  20. \***************************************************************************/
  21.  
  22. #ifndef         EXEC_TYPES_H
  23. #include        <exec/types.h>
  24. #endif
  25. #ifndef         EGS_EGSINTUI_H
  26. #include        <egs/egsintui.h>
  27. #endif
  28. #ifndef         EGS_EGSGADBOX_H
  29. #include        <egs/egsgadbox.h>
  30. #endif
  31. #ifndef         EGS_EGB_GBSCROLLBOX_H
  32. #include        <egs/egb/gbscrollbox.h>
  33. #endif
  34.  
  35. #define ER_USER_GADID_MIN  0x100000
  36. #define ER_USER_GADID_MAX  0x1FFFFF
  37.  
  38. #define ER_REQ_OK         0
  39. #define ER_REQ_FINISHED   1
  40. #define ER_NO_REQWINDOW   2
  41. #define ER_REQ_CANCELED   3
  42.  
  43. #define ER_AUTO_CLOSE     0x0000001
  44.  
  45.  
  46. typedef struct ER_ReqContext *ER_ReqContextPtr;
  47. typedef struct ER_Request *ER_RequestPtr;
  48.  
  49. struct ER_ReqContext{
  50.       ER_RequestPtr        First,Last;
  51. };
  52.  
  53.  
  54. struct ER_Request{
  55.      APTR                 ObjectKey;
  56.      LONG                 Type;
  57.      ER_ReqContextPtr     Context;
  58.      ER_RequestPtr        Next,Prev;
  59.      UBYTE                Error;
  60.      UBYTE                Pad0;
  61.      UWORD                Pad1;
  62.      APTR                 UserData;
  63.      ULONG                Private1[6];
  64.      APTR                 Private2;
  65.      struct EI_NewWindow *Nw;
  66.      EB_GadContext        Con;
  67.      EB_GadBoxPtr         Root;
  68.      EI_MenuPtr           Menu;
  69.      char                *Title;
  70.      struct MsgPort      *Port;
  71.      EI_ScreenPtr         Screen;
  72.      EI_WindowPtr         RWindow;
  73.      ULONG                Flags;
  74.      APTR                 Private3[8];
  75. };
  76.  
  77. struct ER_TextList{
  78.      struct List          List;
  79.      UWORD                Pad;
  80.      APTR                 Con;
  81. };
  82.  
  83. typedef struct ER_FileRequest *ER_FileRequestPtr;
  84.  
  85. struct ER_FileRequest {
  86.      struct ER_Request    Req;
  87.      UWORD                NameLen;
  88.      char                 Name[32];
  89.      UWORD                Pad1;
  90.      UWORD                PathLen;
  91.      char                 Path[100];
  92.      UWORD                Pad2;
  93.      UWORD                PattLen;
  94.      char                 Pattern[100];
  95.      UWORD                Pad3;
  96.      struct EB_InfoBox    Fnumbox,Dnumbox;
  97.      struct ER_TextList   Files,Volumes;
  98.      EGB_ScrollGadPtr     FileGad,VolGad;
  99.      EI_StringGadPtr      PathGad,NameGad,PattGad;
  100.      UWORD                OnameLen;
  101.      char                 Oname[32];
  102.      UWORD                Pad4;
  103.      UWORD                OPathLen;
  104.      char                 OPath[100];
  105.      UWORD                Pad5;
  106.      UWORD                OPattLen;
  107.      char                 OPattern[100];
  108.      UWORD                Pad7;
  109.      struct Node         *OldFile;
  110.      UBYTE                CursLeft;
  111.      UBYTE                Pad8;
  112.      UWORD                Pad9;
  113.      struct Node         *LeftCurs,*RightCurs;
  114. };
  115.  
  116. typedef struct ER_SimpleRequest *ER_SimpleRequestPtr;
  117.  
  118. struct ER_SimpleRequest {
  119.  
  120.      struct ER_Request    Req;
  121.      APTR                 Texts;
  122.      APTR                 Selects;
  123.      WORD                 Selected;
  124.      WORD                 Pad0;
  125. };
  126.  
  127. #endif  /* EGS_EGSREQUEST_H */
  128.  
  129.